import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import layout from '@/components/layout'
import gsInfo from '@/components/gsInfo'
import test from '@/components/test'
import tab from '@/components/tab'
import gsInfo_test from '@/assets/gsInfo_test'
import orderInfo from '@/components/orderInfo'
import customerDetails from '@/components/customer/customerDetails'
import step_test from '@/components/steps/step_test'
//引入企业税务信息
import taxInfo from '@/components/customer/taxInfo'
//测试form
import form_test from '@/components/customer/form'
//引入税种测试
import taxInfoTest from '@/components/customer/taxInfoTest'
//添加股东信息
import addForm from '@/components/customer/addForm'

import gsInfoTable from '@/components/customer/gsInfoTable'
//企业服务信息
import companyServer from '@/components/customer/companyServer'
//企业服务信息表格
import comSerTable from '@/components/customer/comSerTable'
//气泡提示
import poptip from '@/components/Poptip'
//首页登录
import Login from '@/components/user/login'
//搜索框
import uploadPictures from '@/components/uploadPicture'
//注册页面
import Register from '@/components/user/register'
//税务表格
import taxInfoTable from '@/components/customer/taxInfoTable'
//权限管理
import userAdministration from '@/components/systemAdministration/userAdministration'
import roleAdministration from '@/components/systemAdministration/roleAdministration'
//引入axios
import axios from 'axios'



Vue.prototype.$http = axios

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: Hello
    },{
      path:'/login',
      name:'login',
      component:Login
    },{//注册
      path:'/register',
      name:'register',
      component:Register
    },{//布局
      path: '/layout',
      name: 'layout',
      component: layout,
      children:[
        {
          //工商信息
          path:'gsInfo',
          name:'gsInfo',
          component:gsInfo
        },{//订单
          path:'orderInfo',
          name:'orderInfo',
          component:orderInfo
        },{//客户详情
          path:'customerDetails',
          name:'customerDetails',
          component:customerDetails
        },{//服务信息
          path:'companyServer',
          name:'companyServer',
          component:companyServer
        },{//服务信息表格
          path:'comSerTable',
          name:'comSerTable',
          component:comSerTable
        },{//上传图片测试
          path:'uploadPictures',
          name:'uploadPictures',
          component:uploadPictures
        },{//提示poptip
          path:'poptip',
          name:'poptip',
          component:poptip
        },{
          path:'steps',
          name:'steps',
          component:step_test,
          children:[
            {//公司信息
              path:'gsInfo',
              name:'gsInfo',
              component:gsInfo,
              meta:{
                requireAuth:true
              }
            },{//客户详情
              path:'customerDetails',
              name:'customerDetailsStep',
              component:customerDetails
            },{//企业服务信息
              path:'companyServer',
              name:'companyServer',
              component:companyServer
            },{//订单信息
              path:'orderInfo',
              name:'orderInfo',
              component:orderInfo
            }
          ]
        },{//税务信息
          path:'taxInfo',
          name:'taxInfo',
          component:taxInfo
        },{
          path:"form_test",
          name:'form_test',
          component:form_test
        },{
          path:"taxInfoTest",
          name:'taxInfoTest',
          component:taxInfoTest
        },{//添加inputt
          path:"addForm",
          name:'addForm',
          component:addForm
        },{
          path:'gsInfoTable',
          name:'gsInfoTable',
          component:gsInfoTable
        },{//企业税务
          path:'taxInfoTable',
          name:'taxInfoTable',
          component:taxInfoTable
        },{//企业服务信息
          path:'companyServer',
          name:'companyServer',
          component:companyServer
        },{//用户管理
          path:'userAdministration',
          name:'userAdministration',
          component:userAdministration
        },{//角色管理
          path:'roleAdministration',
          name:'roleAdministration',
          component:roleAdministration
        }
      ]
    }
  ]
})
